package com.yq.ylmall.model.product;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yq.ylmall.enums.product.ProductCheck;
import com.yq.ylmall.enums.product.ProductStatus;
import com.yq.ylmall.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 商品
 * </p>
 *
 * @author yzk789
 * @since 2024-05-30
 */
@Data
@TableName("product")
@ApiModel(value = "Product对象", description = "商品")
public class Product extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "品牌ID")
    private Long brandId;

    @ApiModelProperty(value = "一级分类id")
    private Long category1Id;

    @ApiModelProperty(value = "二级分类id")
    private Long category2Id;

    @ApiModelProperty(value = "三级分类id")
    private Long category3Id;

    @ApiModelProperty(value = "计量单位")
    private String unitName;

    @ApiModelProperty(value = "商品规格ID")
    private Long specValueId;

    @ApiModelProperty(value = "线上状态：0-初始值，1-上架，-1-自主下架")
    private ProductStatus status;

    @ApiModelProperty(value = "审核状态：0-初始值，1-通过，-1-未通过")
    private ProductCheck auditStatus;

    @ApiModelProperty(value = "审核信息")
    private String auditMessage;

    @ApiModelProperty(value = "权重排序")
    private Integer sort;

}
